<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>报名</title>
</head>
<body>
	<?php 
	require_once ".\system\dbConn.php";
	$name=$_GET["aname"];
	session_start();//开启session
	$uploadusers=$_SESSION["username"];
	$sql="insert into entry values(null,'$name','$uploadusers')";
	$result=mysqli_query($link,$sql);

	if ($result==1) {
          echo "报名成功";
          header("refresh:2,url='activity.php'");
    }
    else{
          echo "报名失败";
        }	

 ?>
</body>
</html>